package capricornus.res
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;

	public class DefaultResManager
	{
		private static var _ins:DefaultResManager = null;
		
		private var _defaultActionImage:BitmapData;
		
		public function DefaultResManager()
		{
		}
		
		public static function get instance():DefaultResManager
		{
			if( null==_ins )
			{
				_ins = new DefaultResManager();
			}
			return _ins;
		}
		
		public function initialize():void
		{
			_defaultActionImage = new DefaultActionImagePanel();
		}
		
		private var _arrDefaultFlower:Array;
		public function getDefaultFlower( index:int ):BitmapData
		{
			if( _arrDefaultFlower==null )
			{
				_arrDefaultFlower = new Array();
				_arrDefaultFlower.push( new Flower0Panel() );
				_arrDefaultFlower.push( new Flower1Panel() );
				_arrDefaultFlower.push( new Flower2Panel() );
				_arrDefaultFlower.push( new Flower3Panel() );
				HeartPosPanel
			}
			return _arrDefaultFlower[index];
		}
		
		public function get defaultRectBitmap():Bitmap
		{
			return new Bitmap( defaultRectBitmapData );
		}
		
		private var _defaultRectBitmapData:BitmapData = null;
		public function get defaultRectBitmapData():BitmapData
		{
			if( _defaultRectBitmapData==null )
			{
				_defaultRectBitmapData = new BitmapData( 1, 1, true, 0 );
			}
			return _defaultRectBitmapData;
		}
		
		public function get defaultActionImage():BitmapData
		{
			return _defaultActionImage;
		}
	}
}